<%--
  Created by IntelliJ IDEA.
  User: shw
  Date: 2018-02-26
  Time: 15:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h4>list page</h4>

welcome:<shiro:principal></shiro:principal>

<shiro:hasRole name="admin">
    <br>
    <a href="admin.jsp">admin page</a>
</shiro:hasRole>

<shiro:hasRole name="user">
    <br>
    <a href="user.jsp">user page</a>
</shiro:hasRole>

<br>
<a href="/shiro/test">test Method</a>

<br>
<a href="/shiro/logout">退出登陆</a>

</body>
</html>
